home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / pnice.nr < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Pnice(2)                   Oct. 1, 1991                  Pnice(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Pnice - change process priority for the current process
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        WORD Pnice( WORD delta );
  12.  
  13. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  14.        _✓P_✓n_✓i_✓c_✓e  changes  the  base process niceness for the current
  15.        process by the amount _✓d_✓e_✓l_✓t_✓a.  Higher  levels  of  niceness
  16.        correspond  to  decreased priority in scheduling, so posi-
  17.        tive values for delta cause the corresponding  process  to
  18.        be  scheduled  less often. Conversely, negative values for
  19.        delta cause the process priority to be increased.
  20.  
  21. R✓RE✓ET✓TU✓UR✓RN✓NS✓S
  22.        The (adjusted) process priority, as a 16 bit signed  inte-
  23.        ger.  0 is the default priority; values greater than 0 are
  24.        for higher priority processes  (ones  that  are  scheduled
  25.        more  often),  and  values  less than 0 are lower priority
  26.        processes.
  27.  
  28. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  29.        _✓P_✓r_✓e_✓n_✓i_✓c_✓e(2)
  30.  
  31. B✓BU✓UG✓GS✓S
  32.        The scheduling algorithm is pretty weird, so it's hard  to
  33.        predict exactly what effect process priorities have.
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.9          MiNT Programmer's Manual                   1
  65.  
  66.  
  67.